home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Visual Basic 5.0 (2nd Edition)
/
Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso
/
Source
/
WinTlb
/
OAOBJ.IDL
< prev
next >
Wrap
Text File
|
1997-04-11
|
2KB
|
75 lines
// Interfaces from oaidl.idl and objidl.idl
[ uuid(00000002-0000-0000-C000-000000000046),
odl,
helpstring("Visual Basic version of IMalloc interface")
]
interface IVBMalloc : IUnknown {
long Alloc([in] long cb);
long Realloc([in] void *pv, [in] long cb);
void Free([in] long pv);
long GetSize([in] long pv);
int DidAlloc(long pv);
void HeapMinimize(void);
}
typedef IVBMalloc *LPMALLOC;
[ uuid(00020404-0000-0000-C000-000000000046),
odl,
helpstring("Visual Basic version of IEnumVARIANT interface")
]
interface IVBEnumVARIANT : IUnknown {
HRESULT Next([in] long celt,
[in, out] VARIANT *rgvar,
[in] long pceltFetched);
HRESULT Skip([in] long celt);
HRESULT Reset();
HRESULT Clone([in, out] IVBEnumVARIANT** ppenum);
}
[ uuid(0000010c-0000-0000-C000-000000000046),
odl,
helpstring("Visual Basic version of IEnumVARIANT IPersist")
]
interface IVBPersist : IUnknown {
HRESULT GetClassID([in, out] CLSID * pClassID
);
}
[ uuid(0000010b-0000-0000-C000-000000000046),
odl,
helpstring("Visual Basic version of IEnumVARIANT IPersistFile")
]
interface IVBPersistFile : IVBPersist {
[ helpstring("Checks for changes since last file write") ]
HRESULT IsDirty();
[ helpstring("Opens the specified file and initializes the object from its contents") ]
HRESULT Load([in] LPCOLESTR pszFileName, [in] DWORD dwMode);
[ helpstring("Saves the object into the specified file") ]
HRESULT Save([in] LPCOLESTR pszFileName, [in] BOOL fRemember);
[ helpstring("Notifies the object that it can revert from NoScribble mode to Normal mode") ]
HRESULT SaveCompleted([in] LPCOLESTR pszFileName);
[ helpstring("Gets the current name of the file associated with the object") ]
HRESULT GetCurFile([in, out] LPOLESTR *ppszFileName);
}